package com.bilibili.java.bookpage.bean;

public class OrderInfo {
		private int id;//订单编号
		private Commodity commodity;//书籍信息对象
		private double price;//单价
		private int bookNum;//数量
		@Override
		public String toString() {
			return "OrderInfo [id=" + id + ", commodity=" + commodity + ", price=" + price + ", bookNum=" + bookNum
					+ "]";
		}
		public int getId() {
			return id;
		}
		public void setId(int id) {
			this.id = id;
		}
		public Commodity getBookInfo() {
			return commodity;
		}
		public void setBookInfo(Commodity commodity) {
			this.commodity = commodity;
		}
		public OrderInfo(int id, Commodity commodity) {
			super();
			this.id = id;
			this.commodity = commodity;
		}
		public OrderInfo() {
			super();
		}
		public double getPrice() {
			return price;
		}
		public void setPrice(double price) {
			this.price = price;
		}
		public int getBookNum() {
			return bookNum;
		}
		public void setBookNum(int bookNum) {
			this.bookNum = bookNum;
		}
		public OrderInfo(int id, Commodity bookInfo, double price, int bookNum) {
			super();
			this.id = id;
			this.commodity = bookInfo;
			this.price = price;
			this.bookNum = bookNum;
		}
		
		
		
		
		
		
		
		
}
